<?php
	session_start();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">

<?php include("articles/head.php"); ?>

	<body>
		<!--[if lte IE 8]> 
		    <div class="alert"> 
	          	Votre navigateur présente de sérieuses lacunes en terme de sécurité et de performances.<br/>
				Pour visiter ce site, il est recommand&eacute; de changer de navigateur...
	      	</div>
		<![endif]-->
		
		<div id="top">
			<ul>
				<li><a href="#"><?php print strtoupper($_SESSION['name']); ?></a></li>
				<li><a href="articles.php?action=read">Articles</a> </li>
				<li><a href="../administrator.php?action=logout" alt="Deconnexion">[X]</a></li>
			</ul>
		</div>

		<div id="wrapper">
			
			<header>
				<h1>Renaud Mathieu</h1>
				<div class="slogan">Administration</div>
			</header>
		
			<div id="breadcrumb">
				<a href="../administrator.php">Administration</a> > Gestion des articles
			</div>
		
		
			<div id="main">
				<div id="content">
					
					<?php
					if ((isset($_GET['action'])) && ($_GET['action'] == 'create')) {
						include("articles/create.php");
					}elseif ((isset($_GET['action'])) && ($_GET['action'] == 'delete')){
						include("articles/delete.php");
					}elseif ((isset($_GET['action'])) && ($_GET['action'] == 'update')){
						include("articles/update.php");
					}elseif ((isset($_GET['action'])) && ($_GET['action'] == 'read')){
						include("articles/read.php");
					}else{
						// L'utilisateur n'a rien à faire ici
					}
					?>
					
				</div>
			</div>
			
		</div>
		
		<!-- Google Analytics -->
		<script type="text/javascript">

	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-22860249-1']);
	  _gaq.push(['_trackPageview']);

	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();

		</script>
	</body>
	
	
</html>